How do I use cookies?Usually we have two ways to set or get cookies for the browser, respectively, the Set-cookie header in HTTP Response headers and the cookie header in HTTP Request headers, and assign or value the Document.cookie through
Before I introduce the main body, we'll introduce the basics of cookies
First understand what a cookie is
"Cookies are variables that are stored on the computer of the visitor. This cookie is sent whenever the same computer requests a page through
The birth of a cookie
Because the HTTP protocol is stateless, the server-side business must be stateful. The original purpose of cookies was to store state information in the Web to facilitate server-side use. For example, to determine whether the
There are two ways of doing this: The first type: Under Windows 7, you can use the Mklink command to set the cache location of your Chrome browser to the folder path you want.The default cache file for Chrome browser is:Cc:\users\ Login user name
Saving the user's login status is a lot of Web sites will use, generally use session, database or cookies and sessions of the combination of methods, here we understand the cookie method to save the user login status.
Cookies are a way for servers
Google Chrome extensions can use any of the following storage mechanisms:
HTML5 Local storage implemented by the Localstorage API (here is a bit)
Browser storage implemented by Google's chrome.storage.* API
Cookie storage
Note: This article is the fourth article on chrome Developer Tools translation.
See https://developers.google.com/chrome-developer-tools/docs/resources for more informationChrome Developer Tools: Resources panelchrome Developer Tools: Resource Panel
Sessionstorage and Localstorage are provided by the HTML5 Web Storage API to easily save data between Web requests. With local data, you can prevent data from being passed back and forth unnecessarily between browsers and servers. Cookies
Cookies
I just got in touch with PHP for less than 3 months, and I got a noob ..... the trial website uses SESSION to keep SESSION calls. without closing the browser, I manually delete all cookie files on the client and refresh the website, found that the
An article on "Getting Started with JavaScript language" covers many of the most basic things in the JavaScript language, from creating script tags to using annotations, including JavaScript files in HTML documents, defining variables, using
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.